package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmChannel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;

@Mapper
public interface WmChannelMapper extends BaseMapper<WmChannel> {
    /**
     * 根据姓名存在频道查询数量
     * @param channelName
     * @return
     */
    Integer selectChannelName(String channelName);

    Integer selectId(String channelName);

    /**
     * 根据状态查询启用的频道
     * @param
     * @return
     */

    List selectByStatus();
}